@import '~ant-design-vue/es/style/themes/default.less';

html,
body,
#app, #root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

//数据列表 列表title行高
.ant-table-thead > tr > th, .ant-table-tbody > tr > td {
  padding: 12px !important;
}
.ant-table-thead>tr>th {
  //background: #f4f4f4!important;
  border-bottom: 1px solid #f0f0f0 !important;
}
// 表格选中样式
.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, .ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, .ant-table-thead > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, .ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td{
  background: @table-select-background;
}
.ant-table-thead > tr > th{
  background: @table-select-background !important;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {
.ant-calendar-picker{
  width: 100%;
}
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
    padding: 0;
    text-align: right;
    .ant-btn-primary{
      color:#006ebc !important;
      border: #006ebc 1px solid !important;
      background: #fff;
    }
    .ant-btn{
      //width: 40px;
      //padding: 0;
    }
    .ant-btn:focus {
      border-color: #d9d9d9;
      color: #999;
    }
  }
}

// 下拉菜单选中颜色
.ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover{
  background: @table-select-background;
}

// 弹窗表单
.modal-form-box{
  .ant-descriptions-item{
    padding-left: 141px;
  }
}
.ant-modal-header{
  background-color: @primary-color !important;
  padding: 13px 24px;
  .ant-modal-title{
    color: #fff;
  }
}
.ant-modal-close {
 color: #fff !important;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

//表单弹框样式
.ant-modal-footer  {
  padding: 16px 48px;
  .ant-btn {
    min-width: 88px;
  }
  .ant-btn+.ant-btn:not(.ant-btn-link) {
    margin-left: 24px;
  }
}
